home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 1 / The Arsenal Files (Arsenal Computer).ISO / archive / unixarc.pt2 / text0000.txt < prev   
Encoding:
Text File  |  1994-01-23  |  65.9 KB  |  2,350 lines

  1. Submitted-by: hyc@math.lsa.umich.edu
  2. Posting-number: Volume 15, Issue 78
  3. Archive-name: arc5.21/part02
  4.  
  5. #--------------------------------CUT HERE-------------------------------------
  6. #! /bin/sh
  7. #
  8. # This is a shell archive.  Save this into a file, edit it
  9. # and delete all lines above this comment.  Then give this
  10. # file to sh by executing the command "sh file".  The files
  11. # will be extracted into the current directory owned by
  12. # you with default permissions.
  13. #
  14. # The files contained herein are:
  15. #
  16. # -rw-r--r--  1 hyc         54144 Jun 13 05:26 Arc521.doc
  17. # -rw-r--r--  1 hyc          7232 Jun 12 19:31 arc.1
  18. #
  19. echo 'x - Arc521.doc'
  20. if test -f Arc521.doc; then echo 'shar: not overwriting Arc521.doc'; else
  21. sed 's/^X//' << '________This_Is_The_END________' > Arc521.doc
  22. X
  23. X
  24. X
  25. X
  26. X
  27. X
  28. X
  29. X
  30. X
  31. X
  32. X
  33. X
  34. X                          ARC
  35. X
  36. X                 File Archive Utility
  37. X                     Version 5.20
  38. X
  39. X
  40. X
  41. X
  42. X
  43. X
  44. X
  45. X
  46. X
  47. X
  48. X
  49. X
  50. X
  51. X
  52. X
  53. X
  54. X
  55. X
  56. X
  57. X
  58. X
  59. X
  60. X
  61. X
  62. X
  63. X                 (C)COPYRIGHT 1985,86
  64. X                          by
  65. X          System Enhancement Associates, Inc.
  66. X                  ALL RIGHTS RESERVED
  67. X
  68. X
  69. X
  70. X
  71. X
  72. XThis document describes version 5.20 of the ARC file
  73. Xutility, which was created by System Enhancement
  74. XAssociates, Inc. in October of 1986.
  75. X
  76. X
  77. X        TABLE OF CONTENTS
  78. X
  79. X
  80. X
  81. XSection                                           Page
  82. X
  83. X
  84. XIntroduction  ....................................   1
  85. XUsing ARC  .......................................   3
  86. XARC commands  ....................................   5
  87. X    Adding files  ................................   5
  88. X    Extracting files  ............................   7
  89. X    Deleting files  ..............................   8
  90. X    Listing archive entries  .....................   8
  91. X    Running files  ...............................  10
  92. X    Printing files  ..............................  11
  93. X    Testing an archive  ..........................  11
  94. X    Converting an archive  .......................  12
  95. XARC options  .....................................  13
  96. X    Suppressing compression  .....................  13
  97. X    Backup retention  ............................  14
  98. X    Message suppression  .........................  15
  99. X    Encryption/Decryption  .......................  17
  100. XRAMdisk support  .................................  18
  101. XMARC  ............................................  19
  102. XARCE  ............................................  20
  103. XVersion numbers  .................................  21
  104. XCommon questions and answers  ....................  22
  105. XMaintenance contracts  ...........................  24
  106. XRevision history  ................................  25
  107. X    Changes in version 3  ........................  25
  108. X    Changes in version 4  ........................  25
  109. X    Changes in version 4.1  ......................  26
  110. X    Changes in version 4.3  ......................  26
  111. X    Changes in version 4.4  ......................  27
  112. X    Changes in version 4.5  ......................  27
  113. X    Changes in version 5.0  ......................  28
  114. X    Changes in version 5.1  ......................  29
  115. X    Changes in version 5.2  ......................  30
  116. XProgram history and credits  .....................  31
  117. XBulletin boards  .................................  33
  118. XSite licenses  ...................................  34
  119. X
  120. X
  121. X
  122. X
  123. X
  124. X
  125. X
  126. X
  127. X
  128. X
  129. X
  130. X
  131. X
  132. X          INTRODUCTION
  133. X
  134. X
  135. X
  136. XARC is the copyrighted property of System Enhancement
  137. XAssociates, Inc.  You are granted a limited license to
  138. Xuse ARC, and to copy it and distribute it, provided
  139. Xthat the following conditions are met:
  140. X
  141. X1) No fee may be charged for such copying and
  142. X   distribution.
  143. X
  144. X2) ARC may ONLY be distributed in its original,
  145. X   unmodified state.
  146. X
  147. X3) ARC may *not* be distributed, in whole or in part, as
  148. X   part of any commercial product or service without
  149. X   the express written permission of System
  150. X   Enhancement Associates.
  151. X
  152. X
  153. XContributions for the use of this program will be
  154. Xappreciated, and should be sent to:
  155. X
  156. X          System Enhancement Associates, Inc.
  157. X             21 New Street, Wayne NJ 07470
  158. X
  159. XYou may not use this product in a commercial
  160. Xenvironment or a governmental organization without
  161. Xpaying a license fee of $35.  Site licenses and
  162. Xcommercial distribution licenses are available.  A
  163. Xprogram disk and printed documentation are available
  164. Xfor $50.  See the order form enclosed with this manual
  165. Xfor more details.
  166. X
  167. X
  168. X
  169. XARC is user supported software.  This means that you
  170. Xmay copy it freely and give the copies away to anyone
  171. Xyou wish, at no cost.  They are in turn requested to
  172. Xsend in a contribution if they decide to use it.
  173. X
  174. XThe user supported software concept (often referred to
  175. Xas "shareware") is an attempt to provide software at low
  176. Xcost.  The cost of offering a new product by
  177. Xconventional means is staggering, and hence dissuades
  178. Xmany independent authors and small companies from
  179. Xdeveloping and promoting their ideas.  User supported
  180. Xsoftware is an attempt to develop a new marketing
  181. Xchannel, where products can be introduced at low cost.
  182. X
  183. X
  184. X
  185. X
  186. XARC                                              Page 1
  187. X If user supported software works, then everyone will
  188. Xbenefit.  The user will benefit by receiving quality
  189. Xproducts at low cost, and by being able to "test
  190. Xdrive" software thoroughly before purchasing it.  The
  191. Xauthor benefits by being able to enter the commercial
  192. Xsoftware arena without first needing large sources of
  193. Xventure capital.
  194. X
  195. XBut it can only work with your support.  We're not
  196. Xjust talking about ARC here, but about all user
  197. Xsupported software.  If you obtain a user supported
  198. Xprogram from a friend or colleague, and are still
  199. Xusing it after a couple of weeks, then it is obviously
  200. Xworth something to you, and a contribution should be
  201. Xsent.
  202. X
  203. X
  204. X
  205. XAnd now, back to ARC:
  206. X
  207. XARC is used to create and maintain file archives.  An
  208. Xarchive is a group of files collected together into
  209. Xone file in such a way that the individual files may
  210. Xbe recovered intact.
  211. X
  212. XARC is different from other archive and library
  213. Xutilities in that it automatically compresses the
  214. Xfiles being archived, so that the resulting archive
  215. Xtakes up a minimum amount of space.
  216. X
  217. XWhen ARC is used to add a file to an archive it
  218. Xanalyzes the file to determine which of three storage
  219. Xmethods will result in the greatest savings.  These
  220. Xthree methods are:
  221. X
  222. X1) No compression; the file is stored as is.
  223. X
  224. X2) Repeated-character compression; repeated sequences
  225. X   of the same byte value are collapsed into a three-
  226. X   byte code sequence.
  227. X
  228. X3) Dynamic Lempel-Zev compression;  the file is stored
  229. X   as a series of variable size bit codes which
  230. X   represent character strings, and which are created
  231. X   "on the fly".
  232. X
  233. XNote that since one of the three methods involves no
  234. Xcompression at all, the resulting archive entry will
  235. Xnever be larger than the original file.
  236. X
  237. X
  238. X
  239. X
  240. X
  241. XARC                                              Page 2
  242. X            USING ARC
  243. X
  244. X
  245. X
  246. XARC is invoked with a command of the following format:
  247. X
  248. X    ARC <x> <arcname> [<template> . . .]
  249. X
  250. XWhere:
  251. X
  252. X    <x> is an ARC command letter (see below), in
  253. X    either upper or lower case.
  254. X
  255. X    <arcname> is the name of the archive to act on,
  256. X    with or without an extension.  If no extension is
  257. X    supplied, then ".ARC" is assumed.  The archive
  258. X    name may include path and drive specifiers.
  259. X
  260. X    <template> is one or more file name templates.
  261. X    The "wildcard" characters "*" and "?" may be used.
  262. X    A file name template may include a path or drive
  263. X    specifier, though it isn't always meaningful.
  264. X
  265. X
  266. XIf ARC is invoked with no arguments (by typing "ARC",
  267. Xand pressing "enter"), then a brief command summary is
  268. Xdisplayed.
  269. X
  270. X
  271. X
  272. XFollowing is a brief summary of the available ARC
  273. Xcommands:
  274. X
  275. X    a   = add files to archive
  276. X    m   = move files to archive
  277. X    u   = update files in archive
  278. X    f   = freshen files in archive
  279. X    d   = delete files from archive
  280. X    x,e = extract files from archive
  281. X    r   = run files from archive
  282. X    p   = copy files from archive to standard output
  283. X    l   = list files in archive
  284. X    v   = verbose listing of files in archive
  285. X    t   = test archive integrity
  286. X    c   = convert entry to new packing method
  287. X
  288. X
  289. X
  290. X
  291. X
  292. X
  293. X
  294. X
  295. X
  296. XARC                                              Page 3
  297. X Following is a brief summary of the available ARC
  298. Xoptions, which may alter how a command works:
  299. X
  300. X    b   = retain backup copy of archive
  301. X    s   = suppress compression (store only)
  302. X    w   = suppress warning messages
  303. X    n   = suppress notes and comments
  304. X    o   = overwrite existing files when extracting
  305. X    g   = encode or decode archive entry
  306. X
  307. X
  308. X
  309. X
  310. X
  311. X
  312. X
  313. X
  314. X
  315. X
  316. X
  317. X
  318. X
  319. X
  320. X
  321. X
  322. X
  323. X
  324. X
  325. X
  326. X
  327. X
  328. X
  329. X
  330. X
  331. X
  332. X
  333. X
  334. X
  335. X
  336. X
  337. X
  338. X
  339. X
  340. X
  341. X
  342. X
  343. X
  344. X
  345. X
  346. X
  347. X
  348. X
  349. X
  350. X
  351. XARC                                              Page 4
  352. X          ARC COMMANDS
  353. X
  354. X
  355. X
  356. XThis section describes each of the commands.  ARC will
  357. Xaccept any one command at a time.  If no commands are
  358. Xgiven, then a brief command list is displayed.
  359. X
  360. X
  361. X
  362. XADDING FILES
  363. X
  364. XFiles are added to an archive using the "A" (Add), "M"
  365. X(Move), "U" (Update), or "F" (Freshen) commands.  Add
  366. Xalways adds the file.  Move differs from Add in that
  367. Xthe source file is deleted once it has been added to
  368. Xthe archive.
  369. X
  370. XUpdate differs from Add in that the file is only added
  371. Xif it is not already in the archive, or if it is newer
  372. Xthat the corresponding entry in the archive.
  373. X
  374. XFreshen is similar to Update, except that new files
  375. Xare not added to the archive; only files already in
  376. Xthe archive are updated.
  377. X
  378. X
  379. XFor example, if you wish to add a file named
  380. X"TEST.DAT" to an archive named "MY.ARC", you would use
  381. Xa command of the form:
  382. X
  383. X    ARC a my test.dat
  384. X
  385. XIf you wanted to add all files with a ".C" extension,
  386. Xand all files named "STUFF" to an archive named
  387. X"JUNK.ARC", you could type:
  388. X
  389. X    ARC a junk *.c stuff.*
  390. X
  391. XIf you wanted to move all files in your current
  392. Xdirectory into an archive named "SUM.ARC", you could
  393. Xuse a command of the form:
  394. X
  395. X    ARC m sum *.*
  396. X
  397. XIf you have an archive named "TEXT.ARC", and you
  398. Xwanted to add to it all of your files with an
  399. Xextension of ".TXT" which have been created or changed
  400. Xsince they were last archived, then you would type:
  401. X
  402. X    ARC u text *.txt
  403. X
  404. X
  405. X
  406. XARC                                              Page 5
  407. X If you have a bunch of files in your current
  408. Xdirectory, with backup copies being stored in an
  409. Xarchive named "SAFE.ARC", then if you wanted to make
  410. Xsure that every file in the archive is the latest
  411. Xversion of that file, you would type:
  412. X
  413. X    ARC f safe
  414. X
  415. X
  416. XA word about Update and Freshen:  These are similar in
  417. Xthat they look at the date and time of last change on
  418. Xthe file, and only add it if the file has been changed
  419. Xsince it was last archived.  They differ in that
  420. XUpdate will add new files, while Freshen will not.
  421. X
  422. XIn other words, Update looks for the files on disk,
  423. Xand adds them if they are new or have changed, while
  424. XFreshen looks in the archive, and tries to update the
  425. Xfiles which are already there.
  426. X
  427. X
  428. XArchive entries are always maintained in alphabetic
  429. Xorder.  Archive entries may not have duplicate names.
  430. XIf you add a file to an archive that already contains
  431. Xa file by that name, then the existing entry in the
  432. Xarchive is replaced.  Also, the archive itself and its
  433. Xbackup will not be added.
  434. X
  435. XYou may also add a file which is in a directory other
  436. Xthan your current directory.  For example, it is
  437. Xperfectly legal to type:
  438. X
  439. X    ARC a junk c:\dustbin\stuff.txt
  440. X
  441. XYou cannot add two files with the same name.  In other
  442. Xwords, if you have a file named "C:\DUSTBIN\STUFF.TXT"
  443. Xand another file named "C:\BUCKET\STUFF.TXT", then
  444. Xtyping:
  445. X
  446. X    arc a junk c:\dustbin\*.* c:\bucket\*.*
  447. X
  448. Xwill not work.
  449. X
  450. X
  451. XARC does not save the path name.  In other words, if
  452. Xyou specify a drive and/or path when adding a file,
  453. Xonly the actual file name is stored in the archive.
  454. X
  455. X
  456. X
  457. X
  458. X
  459. X
  460. X
  461. XARC                                              Page 6
  462. X ARC will never add an archive to itself, nor will it
  463. Xadd the temporary copy or a backup copy of the
  464. Xarchive.
  465. X
  466. X
  467. XAn interesting note:  It has been brought to our
  468. Xattention that BASIC programs compress to a smaller
  469. Xsize when they are *not* tokenized.  If you are more
  470. Xconcerned with space than speed, you may wish to
  471. Xconvert your BASIC programs to ASCII form before
  472. Xadding them to an archive.  Your BASIC manual should
  473. Xgive instructions on how to do this.
  474. X
  475. X
  476. X
  477. XEXTRACTING FILES
  478. X
  479. XArchive entries are extracted with the "E" (Extract)
  480. Xand "X" (eXtract) commands.  For example, if you had
  481. Xan archive named "JUNK.ARC", and you wanted all files
  482. Xin it with an extension of ".TXT" or ".DOC" to be
  483. Xrecreated on your disk, you could type:
  484. X
  485. X    ARC x junk *.txt *.doc
  486. X
  487. XIf you wanted to extract all of the files in an
  488. Xarchive named "JUNK.ARC", you could simply type:
  489. X
  490. X    ARC x junk
  491. X
  492. XWhatever method of file compression was used in
  493. Xstoring the files is reversed, and uncompressed copies
  494. Xare created in the current directory.
  495. X
  496. XYou can also specify a path name, in which case the
  497. Xdecompressed copy is placed in the specified
  498. Xdirectory.  For example, if you had an archive named
  499. X"JUNK.ARC", and you wanted all files in it with an
  500. Xextension of ".TXT" to be placed in the directory
  501. X"C:\WASTE\LAND", then you could type:
  502. X
  503. X    ARC x junk c:\waste\land\*.txt
  504. X
  505. XIf you wanted to put the file "TRASH.TXT" on your A:
  506. Xdrive, and the file "LITTER.TXT" on your B: drive, you
  507. Xcould type:
  508. X
  509. X    ARC x junk a:trash.txt b:litter.txt
  510. X
  511. X
  512. X
  513. X
  514. X
  515. X
  516. XARC                                              Page 7
  517. X If you give more than one path for a file, then only
  518. Xthe first one is used.  For example, if you typed:
  519. X
  520. X    ARC x junk a:trash.txt b:trash.txt
  521. X
  522. Xthen TRASH.TXT will be placed on your A: drive.
  523. X
  524. X
  525. X
  526. XDELETING FILES
  527. X
  528. XArchive entries are deleted with the "D" (Delete)
  529. Xcommand.  For example, if you had an archive named
  530. X"JUNK.ARC", and you wished to delete all entries in it
  531. Xwith a filename extension of ".C", you could type:
  532. X
  533. X    ARC d junk *.c
  534. X
  535. X
  536. X
  537. XLISTING ARCHIVE ENTRIES
  538. X
  539. XYou can obtain a list of the contents of an archive by
  540. Xusing the "L" (List) command or the "V" (Verbose list)
  541. Xcommand.  For example, to see what is in an archive
  542. Xnamed "JUNK.ARC", you could type:
  543. X
  544. X    ARC l junk
  545. X
  546. XIf you are only interested in files with an extension
  547. Xof ".DOC", then you could type:
  548. X
  549. X    ARC l junk *.doc
  550. X
  551. X
  552. XARC prints a short listing of an archive's contents
  553. Xlike this:
  554. X
  555. X    Name          Length    Date
  556. X    ============  ========  =========
  557. X    ALPHA.TXT         6784  16 May 85
  558. X    BRAVO.TXT         2432  16 May 85
  559. X    COCO.TXT           256  16 May 85
  560. X            ====  ========
  561. X    Total      3      9472
  562. X
  563. X
  564. X"Name" is simply the name of the file.
  565. X
  566. X
  567. X
  568. X
  569. X
  570. X
  571. XARC                                              Page 8
  572. X "Length" is the unpacked file length.  In other words,
  573. Xit is the number of bytes of disk space which the file
  574. Xwould take up if it were extracted.
  575. X
  576. X"Date" is the date on which the file had last been
  577. Xmodified, as of the time when it was added to the
  578. Xarchive.
  579. X
  580. X"Total" is pretty obvious, I think.
  581. X
  582. X
  583. XARC prints a verbose listing of an archive's contents
  584. Xlike this:
  585. X
  586. XName          Length    Stowage    SF   Size now  Date       Time    CRC
  587. X============  ========  ========  ====  ========  =========  ======  ====
  588. XALPHA.TXT         6784  Crunched   35%      4413  16 May 85  11:53a  8708
  589. XBRAVO.TXT         2432  Crunched   41%      1438  16 May 85  11:53a  5BD6
  590. XCOCO.TXT           256   Packed     5%       244  16 May 85  11:53a  3AFB
  591. X        ====  ========            ====  ========
  592. XTotal      3      9472             27%      6095
  593. X
  594. X
  595. X"Name", "Length", and "Date" are the same as for a
  596. Xshort listing.
  597. X
  598. X"Stowage" is the compression method used.  The
  599. Xfollowing compression methods are currently known:
  600. X
  601. X       --          No compression.
  602. X
  603. X     Packed        Runs of repeated byte values are
  604. X                   collapsed.
  605. X
  606. X    Crunched       Lempel-Zev compression technique
  607. X                   employed.
  608. X
  609. X    Squeezed       Huffman encoding compression
  610. X                   technique, as employed by an
  611. X                   earlier version of ARC.
  612. X
  613. X"SF" is the stowage factor.  In other words, it is the
  614. Xpercentage of the file length which was saved by
  615. Xcompression.  The total stowage factor is the stowage
  616. Xfactor for the archive as a whole, not counting
  617. Xarchive overhead.
  618. X
  619. X"Size now" is the number of bytes the file is
  620. Xoccupying while in the archive.
  621. X
  622. X
  623. X
  624. X
  625. X
  626. XARC                                              Page 9
  627. X "Time" is the time of last modification, and is
  628. Xassociated with the date of last modification.
  629. X
  630. X"CRC" is the CRC check value which has been stored
  631. Xwith the file.  Another CRC value will be calculated
  632. Xwhen the file is extracted or tested to ensure data
  633. Xintegrity.  There is no especially good reason for
  634. Xdisplaying this value.
  635. X
  636. X
  637. X
  638. XRUNNING FILES
  639. X
  640. XArchive entries may be run without being extracted by
  641. Xuse of the "R" (Run) command.  For example, if you had
  642. Xan archive named "JUNK.ARC" which contained a file
  643. Xnamed "LEMON.COM", which you wished to run, you could
  644. Xtype:
  645. X
  646. X    ARC r junk lemon
  647. X
  648. XYou can run any file from an archive which has an
  649. Xextension of ".COM", ".EXE", ".BAT", or ".BAS".  You
  650. Xdo not have to specify the extension, but all matching
  651. Xfiles are run if you do not.  In other words, if you
  652. Xhad an archive named "JUNK.ARC" which contained the
  653. Xfiles "LEMON.COM", "LEMON.EXE", and "LEMON.BAS", and
  654. Xyou typed:
  655. X
  656. X    ARC r junk lemon
  657. X
  658. XThen all three programs will be run.  You can avoid
  659. Xthis by specifying an extension in this case.
  660. X
  661. XYou can give arguments to the program you are running
  662. Xby appending them to the command line.  For example,
  663. Xif you have an archive named "JUNK.ARC" which contains
  664. Xa program named "LEMON.COM", and you wanted to run it
  665. Xgiving it the argument "JUICE", you would type:
  666. X
  667. X    ARC r junk lemon juice
  668. X
  669. XYou will need a fair amount of memory to run a program
  670. Xfrom an archive.  It probably cannot be done with less
  671. Xthan 256k.
  672. X
  673. X
  674. X
  675. X
  676. X
  677. X
  678. X
  679. X
  680. X
  681. XARC                                             Page 10
  682. X In practice, the file to be run is extracted, run, and
  683. Xthen deleted.  In other words, the above example is
  684. Xequivalent to:
  685. X
  686. X    ARC x junk lemon.com
  687. X    lemon juice
  688. X    erase lemon.com
  689. X
  690. XIf you have an archive which contains a program that
  691. Xyou will be running often, then you should probably
  692. Xextract the program from the archive and use it
  693. Xnormally.
  694. X
  695. X
  696. X
  697. XPRINTING FILES
  698. X
  699. XArchive entries may be examined with the "P" (Print)
  700. Xcommand.  This works the same as the Extract command,
  701. Xexcept that the files are not created on disk.
  702. XInstead, the contents of the files are written to
  703. Xstandard output.  For example, if you wanted to see
  704. Xthe contents of every ".TXT" file in an archive named
  705. X"JUNK.ARC", but didn't want them saved on disk, you
  706. Xcould type:
  707. X
  708. X    ARC p junk *.txt
  709. X
  710. XIf you wanted them to be printed on your printer
  711. Xinstead of on your screen, you could type:
  712. X
  713. X    ARC p junk *.txt >prn
  714. X
  715. X
  716. X
  717. XTESTING AN ARCHIVE
  718. X
  719. XThe integrity of an archive may be tested by use of
  720. Xthe "T" (Test) command.  This checks to make sure that
  721. Xall of the file headers are properly placed, and that
  722. Xall of the files are in good shape.
  723. X
  724. XThis can be very useful for critical archives, where
  725. Xdata integrity must be assured.  When an archive is
  726. Xtested, all of the entries in the archive are unpacked
  727. X(without saving them anywhere) so that a CRC check
  728. Xvalue may be calculated and compared with the recorded
  729. XCRC value.
  730. X
  731. X
  732. X
  733. X
  734. X
  735. X
  736. XARC                                             Page 11
  737. X For example, if you just received an archive named
  738. X"JUNK.ARC" over a phone line, and you want to make
  739. Xsure that you received it properly, you could type:
  740. X
  741. X    ARC t junk
  742. X
  743. XIt defeats the purpose of the T command to combine it
  744. Xwith N or W.
  745. X
  746. X
  747. X
  748. XCONVERTING AN ARCHIVE
  749. X
  750. XThe "C" (Convert) command is used to convert an
  751. Xarchive entry to take advantage of newer compression
  752. Xtechniques.  This is occasionally desirable when a new
  753. Xversion of ARC is released.  Please refer to the
  754. Xrevision history section for details on when new
  755. Xcompression methods were implemented.
  756. X
  757. XFor example, if you had an archive named "JUNK.ARC",
  758. Xand you wanted to make sure that all files with an
  759. Xextension of ".DOC" were encoded using the very latest
  760. Xmethods, you could type:
  761. X
  762. X    ARC c junk *.doc
  763. X
  764. XOr if you wanted to convert every file in the archive,
  765. Xyou could type:
  766. X
  767. X    ARC c junk
  768. X
  769. X
  770. X
  771. X
  772. X
  773. X
  774. X
  775. X
  776. X
  777. X
  778. X
  779. X
  780. X
  781. X
  782. X
  783. X
  784. X
  785. X
  786. X
  787. X
  788. X
  789. X
  790. X
  791. XARC                                             Page 12
  792. X           ARC OPTIONS
  793. X
  794. X
  795. X
  796. XThis section describes the options which are available
  797. Xto modify how ARC works.  Any of these options can be
  798. Xcombined with any of the commands, though the result
  799. Xmay not always be something you'd want to do.
  800. X
  801. X
  802. X
  803. XSUPPRESSING COMPRESSION
  804. X
  805. XThe "S" (Suppress compression) option can be combined
  806. Xwith any command that updates archive entries.  These
  807. Xinclude Add, Move, Update, Freshen, and Convert.  The
  808. Xeffect of the S option is to prevent any compression
  809. Xtechniques from being employed.  This is intended to
  810. Xallow you to add a few files at a time to an archive
  811. Xquickly, and then later convert the archive to
  812. Xcompress everything at once.
  813. X
  814. XFor example, over the course of a day you might give
  815. Xeach of the following commands:
  816. X
  817. X    ARC as junk *.txt
  818. X    ARC as junk *.mac
  819. X    ARC as junk *.doc
  820. X
  821. XAt the end of the day, when you have finished adding
  822. Xthings to the archive, you could have all of the
  823. Xarchive entries compressed at once by typing:
  824. X
  825. X    ARC c junk
  826. X
  827. XYou could also decompress the archive by typing:
  828. X
  829. X    ARC cs junk
  830. X
  831. Xthough I can't imagine why you'd want to.
  832. X
  833. X
  834. X
  835. X
  836. X
  837. X
  838. X
  839. X
  840. X
  841. X
  842. X
  843. X
  844. X
  845. X
  846. XARC                                             Page 13
  847. X BACKUP RETENTION
  848. X
  849. XWhen ARC changes an archive (during an Add, Move,
  850. XUpdate, Freshen, Delete, or Convert) it creates a new
  851. Xarchive with the same name, but with an extension of
  852. X".$$$".  For example, if you add a file to an archive
  853. Xnamed STUFF.ARC, then ARC will create a new archive
  854. Xnamed STUFF.$$$.  ARC will read from your existing
  855. Xarchive and write out the new archive with any changes
  856. Xto the ".$$$" copy.
  857. X
  858. XNormally when ARC is finished it deletes the original
  859. Xand renames the new archive to the original name (ie.
  860. XSTUFF.ARC goes away, and STUFF.$$$ becomes the new
  861. XSTUFF.ARC).  Among other things, this means that if
  862. Xanything goes wrong and ARC is unable to finish, then
  863. Xyour original archive will still be intact.
  864. X
  865. X
  866. XIn some circumstances you may wish to retain the
  867. Xoriginal version of the archive as a backup copy.  You
  868. Xcan do this easily by using the Backup option.  Add
  869. Xthe letter "B" to your command, and ARC will rename
  870. Xyour original archive to have an extension of ".BAK"
  871. Xinstead of deleting it.
  872. X
  873. X
  874. XIn other words, if you wanted to add "WASTE.TXT" to an
  875. Xarchive named "JUNK.ARC", but wanted to keep a backup
  876. Xcopy, then you would type:
  877. X
  878. X    ARC ab junk waste.txt
  879. X
  880. XYour original archive would become "JUNK.BAK", while
  881. X"JUNK.ARC" would contain the new "WASTE.TXT" file.
  882. X
  883. X
  884. XIf you keep a backup of an archive which already has a
  885. Xbackup, then the older backup copy is deleted.
  886. X
  887. X
  888. X
  889. X
  890. X
  891. X
  892. X
  893. X
  894. X
  895. X
  896. X
  897. X
  898. X
  899. X
  900. X
  901. XARC                                             Page 14
  902. X MESSAGE SUPPRESSION
  903. X
  904. XARC prints three types of messages: warnings,
  905. Xcomments, and errors.
  906. X
  907. XWarnings are messages about suspected error
  908. Xconditions, such as when a file to be extracted
  909. Xalready exists, or when an extracted file fails the
  910. XCRC error check.  Warnings may be suppressed by use of
  911. Xthe "W" (Warn) command.  You should use this command
  912. Xsparingly.  In fact, you should probably not use this
  913. Xcommand at all.
  914. X
  915. XComments (or notes) are informative messages, such as
  916. Xnaming each file as it is added to the archive.
  917. XComments and notes may be suppressed by use of the "N"
  918. X(Note) command.
  919. X
  920. XErrors are actual system problems, such as running out
  921. Xof disk space.  You cannot suppress errors.
  922. X
  923. X
  924. XFor example, suppose you extracted all files with an
  925. Xextension of ".BAS" from an archive named "JUNK.ARC"
  926. XThen, after making some changes which you decide not
  927. Xto keep, you decide that you want to extract them all
  928. Xagain, but you don't want to be asked to confirm every
  929. Xone.  In this case, you could type:
  930. X
  931. X    ARC xw junk *.bas
  932. X
  933. XOr, if you are going to add a hundred files with an
  934. Xextension of ".MSG" to an archive named "TRASH.ARC",
  935. Xand you don't want ARC to list them as it adds them,
  936. Xyou could type:
  937. X
  938. X    ARC an trash *.msg
  939. X
  940. XOr, if you want to extract the entire contents of an
  941. Xarchive named "JUNK.ARC", and you don't want to hear
  942. Xanything, then type:
  943. X
  944. X    ARC xnw junk
  945. X
  946. X
  947. XA special case is provided when extracting files from
  948. Xan archive.  One of the various warnings that can
  949. Xoccur is when a file being extracted already exists on
  950. Xdisk.  Normally, ARC will stop and ask you if you want
  951. Xto overwrite the file.  This can be suppressed with
  952. Xthe "W" command, but that will also suppress any
  953. X
  954. X
  955. X
  956. XARC                                             Page 15
  957. X warnings about other things, like failed CRC checks
  958. Xand such.
  959. X
  960. XThe "O" (Overwrite) option suppresses *only* the warning
  961. Xthat the file already exists.  For example, in our
  962. Xearlier case of extracting all the ".BAS" files from
  963. X"JUNK.ARC", a much safer way to do it is to type:
  964. X
  965. X    ARC xo junk *.BAS
  966. X
  967. X
  968. X
  969. X
  970. X
  971. X
  972. X
  973. X
  974. X
  975. X
  976. X
  977. X
  978. X
  979. X
  980. X
  981. X
  982. X
  983. X
  984. X
  985. X
  986. X
  987. X
  988. X
  989. X
  990. X
  991. X
  992. X
  993. X
  994. X
  995. X
  996. X
  997. X
  998. X
  999. X
  1000. X
  1001. X
  1002. X
  1003. X
  1004. X
  1005. X
  1006. X
  1007. X
  1008. X
  1009. X
  1010. X
  1011. XARC                                             Page 16
  1012. X ENCRYPTION/DECRYPTION
  1013. X
  1014. XArchive entries may be encrypted and decrypted by
  1015. Xusing the "G" (Garble) option.  The Garble option
  1016. Xtakes the remainder of the command string as the
  1017. Xpassword to use, so it must be the *last* option.
  1018. X
  1019. X
  1020. XFor example, if you wanted to add a file named
  1021. X"WASTE.TXT" to an archive named "JUNK.ARC", and you
  1022. Xwanted to encrypt it using the password "DEBRIS", then
  1023. Xyou would type:
  1024. X
  1025. X    ARC agdebris junk waste.txt
  1026. X
  1027. XLater on, when you want to extract it again, you would
  1028. Xtype:
  1029. X
  1030. X    ARC xgdebris junk waste.txt
  1031. X
  1032. XThe password you supply is used to encrypt (or
  1033. Xdecrypt) the archive entry by performing an exclusive
  1034. XOR between each byte of the packed data and each byte
  1035. Xof the password.  The password can be any length, and
  1036. Xeach of its bytes is used in rotation.  The password
  1037. Xis converted to uppercase before it is used, so it is
  1038. X*not* case sensitive.  Since the encryption is performed
  1039. Xon the packed data, it has no effect on stowage
  1040. Xfactors.
  1041. X
  1042. XThis is not a particularly sophisticated means of
  1043. Xencryption, and it is theoretically possible to crack.
  1044. XStill, since it is performed on the packed data, the
  1045. Xresult should be quite sufficient for casual use.
  1046. X
  1047. X
  1048. XYou can, if you wish, use different passwords for
  1049. Xdifferent files in an archive, but we advise against
  1050. Xit.  If you are going to encrypt an archive, we
  1051. Xsuggest you use the same password for every file, and
  1052. Xgive the password whenever you do anything at all with
  1053. Xthe archive.  It is possible to list the entries in an
  1054. Xencrypted archive using the "L" and "V" commands
  1055. Xwithout giving the password, but nothing else will
  1056. Xwork properly.
  1057. X
  1058. X
  1059. XWe advise that you use this option sparingly, if at
  1060. Xall.  If you should forget or mistype your password,
  1061. Xit is highly unlikely that you will ever recover your
  1062. Xdata.
  1063. X
  1064. X
  1065. X
  1066. XARC                                             Page 17
  1067. X         RAMDISK SUPPORT
  1068. X
  1069. X
  1070. X
  1071. XIf you have a RAMdisk, or other high-speed storage,
  1072. Xthen you can speed up ARC somewhat by telling it to
  1073. Xput its temporary files on the RAMdisk.  You do this
  1074. Xby setting the ARCTEMP environment string with the MS-
  1075. XDOS SET command.  For example, if drive B: is your
  1076. XRAMdisk, then you would type:
  1077. X
  1078. X    set ARCTEMP=B:
  1079. X
  1080. XRefer to the MS-DOS manual for more details about the
  1081. XSET command.  You need only set the ARCTEMP string
  1082. Xonce, and ARC will use it from then on until you
  1083. Xchange its value or reboot your system.
  1084. X
  1085. X
  1086. XIf ARC does not find an environment string named
  1087. XARCTEMP, then it looks for one named TEMP to use
  1088. Xinstead.  Several packages already use the TEMP string
  1089. Xfor exactly this purpose.  If you have need of an
  1090. Xenvironment string named TEMP for something else, then
  1091. Xyou should be sure to define ARCTEMP.
  1092. X
  1093. X
  1094. XThere are a limited number of temporary files created
  1095. Xby ARC.  The Convert command uses a file named
  1096. X"$ARCTEMP.CVT" to hold each file as it is being
  1097. Xconverted.  The Run command also creates a temporary
  1098. Xfile, which has the name "$ARCTEMP", and whose
  1099. Xextension matches that of the file being run.
  1100. X
  1101. X
  1102. X
  1103. X
  1104. X
  1105. X
  1106. X
  1107. X
  1108. X
  1109. X
  1110. X
  1111. X
  1112. X
  1113. X
  1114. X
  1115. X
  1116. X
  1117. X
  1118. X
  1119. X
  1120. X
  1121. XARC                                             Page 18
  1122. X              MARC
  1123. X
  1124. X
  1125. X
  1126. XMARC is a separate program which is used to merge
  1127. Xarchives created by ARC.  MARC moves files from one
  1128. Xarchive to another without unpacking them.
  1129. X
  1130. X
  1131. XMARC is used as follows:
  1132. X
  1133. X    MARC <target> <source> [<template> . . .]
  1134. X
  1135. XWhere:
  1136. X
  1137. X    <target> is the name of the archive to add files
  1138. X    to.
  1139. X
  1140. X    <source> is the name of the archive to read files
  1141. X    from.
  1142. X
  1143. X    <template> is one or more file name templates.
  1144. X    The wildcard characters "*" and "?" may be used.
  1145. X    If no template is supplied, then all of the files
  1146. X    in <source> are added to <target>.
  1147. X
  1148. XIt is not necessary for the target to exist.  If it
  1149. Xdoes not exist, then it is created.  Thus, MARC can be
  1150. Xused as an "extractor" as well as a "merger".
  1151. X
  1152. X
  1153. XFor example, if you wanted to create an archive named
  1154. X"JUNK.ARC", which is to contain all of the files with
  1155. Xan extension of ".TXT" which are currently contained
  1156. Xin another archive named "WASTE.ARC", then you could
  1157. Xtype:
  1158. X
  1159. X    MARC junk waste *.txt
  1160. X
  1161. XIf you wanted to create an archive named "JUNK.ARC",
  1162. Xwhich is to contain all of the files currently in the
  1163. Xarchives "WASTE.ARC" and "TRASH.ARC", you could type:
  1164. X
  1165. X    MARC junk waste
  1166. X    MARC junk trash
  1167. X
  1168. X
  1169. XIf MARC is invoked with no arguments, then it gives
  1170. Xbrief directions in its use.
  1171. X
  1172. X
  1173. X
  1174. X
  1175. X
  1176. XARC                                             Page 19
  1177. X              ARCE
  1178. X
  1179. X
  1180. X
  1181. XARCE is a program which is used to extract files from
  1182. Xan archive.  It will *only* extract files, and it will
  1183. X*not* extract encrypted files.  It doesn't do anything
  1184. Xthat ARC can't do, but it is highly optimized for the
  1185. Xsole purpose of archive extraction, so it is very
  1186. Xsmall and very fast.
  1187. X
  1188. XARCE is used in a fashion very similar to the "ARC E"
  1189. Xcommand (hence the name).  The first argument is the
  1190. Xname of the archive to extract files from, and may
  1191. Xinclude a drive and path specifier.  Up to sixteen
  1192. Xadditional arguments can be supplied, which specify
  1193. Xthe files to extract.  The wildcard characters "*" and
  1194. X"?" are allowed, as with ARC.  If no files are named,
  1195. Xthen all files are extracted from the archive.  If the
  1196. Xfile being extracted already exists, you are asked
  1197. Xwhether or not you want to overwrite it.  You can use
  1198. Xthe "/R" option to bypass this.
  1199. X
  1200. XFor example, if you had an archive named "WASTE.ARC"
  1201. Xthat you wanted to extract everything from, then you
  1202. Xcould type:
  1203. X
  1204. X    ARCE waste
  1205. X
  1206. XOr if you just wanted to extract the files with a
  1207. Xfilename extension of ".ASM", you could type:
  1208. X
  1209. X    ARCE waste *.asm
  1210. X
  1211. XIf you already have a few files from the archive that
  1212. Xyou want replaced, then you could type:
  1213. X
  1214. X    ARCE waste *.asm /R
  1215. X
  1216. XIf you run ARCE with no arguments at all, then it will
  1217. Xgive you a brief reminder of how to use it.
  1218. X
  1219. X
  1220. XNOTICE:NOTICE: ARCE is the copyrighted property of Vernon D.
  1221. X        Buerg and Wayne Chin.  It is included on the
  1222. X        ARC program disk as a service to ARC users.
  1223. X
  1224. X        Vernon D. Buerg
  1225. X        456 Lakeshire Drive
  1226. X        Daly City, CA  94015
  1227. X        RBBS: (415) 994-2944
  1228. X
  1229. X
  1230. X
  1231. XARC                                             Page 20
  1232. X         VERSION NUMBERS
  1233. X
  1234. X
  1235. X
  1236. XThere seems to be some confusion about our version
  1237. Xnumbering scheme.  All of our version numbers are
  1238. Xgiven as a number with two decimal places.
  1239. X
  1240. XThe units indicate a major revision, such as adding a
  1241. Xnew packing algorithm.
  1242. X
  1243. XThe first decimal place (tenths) indicates a minor
  1244. Xrevision that is not essential, but which may be
  1245. Xdesired.
  1246. X
  1247. XThe second decimal place (hundredths) indicates a
  1248. Xtrivial revision that will probably only be desired by
  1249. Xspecific individuals or by die-hard "latest version"
  1250. Xfanatics.
  1251. X
  1252. XARC also displays its date and time of last edit.  A
  1253. Xchange of the date and time without a corresponding
  1254. Xchange in version number indicates a truly trivial
  1255. Xchange, such as fixing a spelling error.
  1256. X
  1257. X
  1258. XTo sum up: If the units change, then you should get
  1259. Xthe newer version as soon as you can.  If the tenths
  1260. Xchange, then you may want to get the newer version,
  1261. Xbut there's no hurry.  If anything else changes, then
  1262. Xyou probably shouldn't bother.
  1263. X
  1264. X
  1265. X
  1266. X
  1267. X
  1268. X
  1269. X
  1270. X
  1271. X
  1272. X
  1273. X
  1274. X
  1275. X
  1276. X
  1277. X
  1278. X
  1279. X
  1280. X
  1281. X
  1282. X
  1283. X
  1284. X
  1285. X
  1286. XARC                                             Page 21
  1287. X  COMMON QUESTIONS AND ANSWERS
  1288. X
  1289. X
  1290. X
  1291. XHere are some of the more common questions we've
  1292. Xreceived about ARC, along with their answers:
  1293. X
  1294. X
  1295. XQ: Why does ARC run out of room if I make an archive
  1296. X   bigger than about 180k?
  1297. X
  1298. XA: Because you are working on a floppy disk.  ARC
  1299. X   creates a copy of your archive, incorporating any
  1300. X   new files as it goes.  When it is done, it deletes
  1301. X   the original and renames the new one.  There are a
  1302. X   number of reasons for doing it this way, one being
  1303. X   that your original archive is still intact if
  1304. X   anything happens while ARC is running.
  1305. X
  1306. X   You can save some space by using drive specifiers
  1307. X   and having the archive and the files to add on
  1308. X   separate disks, but you still won't be able to make
  1309. X   an archive larger than about 180k.  If you need to
  1310. X   make a larger archive, and if you have a fixed
  1311. X   disk, then you can create the archive on the fixed
  1312. X   disk and then copy it to the floppy.
  1313. X
  1314. X
  1315. XQ: I've seen an ARC.COM and an ARC.EXE.  Which one is
  1316. X   the right one?
  1317. X
  1318. XA: ARC.EXE.  One or more people have been running ARC
  1319. X   through a utility that converts an ".EXE" file to a
  1320. X   ".COM" file.  But this utility is designed to save
  1321. X   space, not speed.  On ARC it saves about 250 bytes,
  1322. X   and makes no measurable difference in program
  1323. X   speed.  We've decided that the savings are not
  1324. X   worth the extra step in development in this case.
  1325. X
  1326. X
  1327. XQ: How can I get the latest version of ARC?
  1328. X
  1329. XA: ARC updates are distributed through normal
  1330. X   shareware channels, and by FidoNet.  We also ship a
  1331. X   program update disk on every order of $50 or more.
  1332. X   Also, please refer to the next section for
  1333. X   information about our maintenance contracts.
  1334. X
  1335. X
  1336. X
  1337. X
  1338. X
  1339. X
  1340. X
  1341. XARC                                             Page 22
  1342. X Q: Can I use ARC to distribute my public domain or
  1343. X   shareware program?
  1344. X
  1345. XA: Yes, of course.
  1346. X
  1347. X
  1348. XQ: Can I use ARC to distribute my commercial software
  1349. X   package?
  1350. X
  1351. XA: Yes, provided that you obtain a commercial
  1352. X   distribution license from us.  Please contact us
  1353. X   for details.
  1354. X
  1355. X
  1356. XQ: I'm a commercial user.  Why should I pay for
  1357. X   shareware that others get for free?
  1358. X
  1359. XA: Because you cannot credibly plead poverty.
  1360. X              ___   Shareware, all shareware, is an attempt to develop
  1361. X   a new marketing channel to the benefit of everyone.
  1362. X   You can still "test drive" shareware for a short
  1363. X   period, but if you decide to use it in your
  1364. X   business, then you should pay for it.
  1365. X
  1366. X
  1367. XQ: Why not allow me to select which method of
  1368. X   compression I want ARC to use?
  1369. X
  1370. XA: It would needlessly complicate ARC, both internally
  1371. X   and in use.  The exact nature of the compression
  1372. X   methods used are complex, and quite different.  The
  1373. X   only sure way to tell which will be best in any
  1374. X   given case is to analyze the data, as ARC does.
  1375. X   The method chosen may not always be what you
  1376. X   expect.
  1377. X
  1378. X
  1379. X
  1380. X
  1381. X
  1382. X
  1383. X
  1384. X
  1385. X
  1386. X
  1387. X
  1388. X
  1389. X
  1390. X
  1391. X
  1392. X
  1393. X
  1394. X
  1395. X
  1396. XARC                                             Page 23
  1397. X      MAINTENANCE CONTRACTS
  1398. X
  1399. X
  1400. X
  1401. XRegistered users of ARC receive 90 days of telephone
  1402. Xsupport at no extra charge.  If you wish, you can
  1403. Xextend this by pruchasing a maintenance contract.
  1404. X
  1405. XA maintenance contract costs $50 per year and entitles
  1406. Xyou to unlimited telephone support, as well as free
  1407. Xupdates to ARC as they come out.
  1408. X
  1409. X
  1410. X
  1411. X
  1412. X
  1413. X
  1414. X
  1415. X
  1416. X
  1417. X
  1418. X
  1419. X
  1420. X
  1421. X
  1422. X
  1423. X
  1424. X
  1425. X
  1426. X
  1427. X
  1428. X
  1429. X
  1430. X
  1431. X
  1432. X
  1433. X
  1434. X
  1435. X
  1436. X
  1437. X
  1438. X
  1439. X
  1440. X
  1441. X
  1442. X
  1443. X
  1444. X
  1445. X
  1446. X
  1447. X
  1448. X
  1449. X
  1450. X
  1451. XARC                                             Page 24
  1452. X        REVISION HISTORY
  1453. X
  1454. X
  1455. X
  1456. XCHANGES IN VERSION 3
  1457. X
  1458. XThe function used to calculate the CRC check value in
  1459. Xprevious versions has been found to be in error.  It
  1460. Xhas been replaced with the proper function.  ARC will
  1461. Xstill read archives created with earlier versions of
  1462. XARC, but it will report a warning that the CRC value
  1463. Xis in error.  All archives created prior to version
  1464. X3.0 should be unpacked and repacked with the latest
  1465. Xversion of ARC.
  1466. X
  1467. X
  1468. XTransmitting a file with XMODEM protocol rounds the
  1469. Xsize up to the next multiple of 128 bytes, adding
  1470. Xgarbage to the end of the file.  This used to confuse
  1471. XARC, causing it to think that the end of the archive
  1472. Xwas invalidly formatted.  This has been corrected in
  1473. Xversion 3.01.  Older archives may still be read, but
  1474. XARC may report them to be improperly formatted.  All
  1475. Xfiles can be extracted, and no data is lost.  In
  1476. Xaddition, ARC will automatically correct the problem
  1477. Xwhen it is encountered.
  1478. X
  1479. X
  1480. X
  1481. XCHANGES IN VERSION 4
  1482. X
  1483. XARC is adding another data compression technique in
  1484. Xthis version.  We have been looking for some technique
  1485. Xthat could improve on Huffman squeezing in at least a
  1486. Xfew cases.  So far, Lempel-Zev compression seems to be
  1487. Xfulfilling our fondest hopes, often achieving
  1488. Xcompression rates as much as 20% better than
  1489. Xsqueezing, and sometimes even better.  Huffman
  1490. Xsqueezing depends on some bytes being more "popular"
  1491. Xthan others, taking the file as a whole.  Lempel-Zev
  1492. Xcompression is instead looking for strings of bytes
  1493. Xwhich are repeated at various points (such as an end
  1494. Xof line followed by spaces for indentation).  Lempel-
  1495. XZev compression is therefore looking for repetition at
  1496. Xa more "macro" level, often achieving impressive
  1497. Xpacking rates.
  1498. X
  1499. XIn the typical case a file is added to an archive once
  1500. Xand then extracted many times, so the increased time
  1501. Xfor an update should more than pay for itself in
  1502. Xincreased disk space and reduced transmission time.
  1503. X
  1504. X
  1505. X
  1506. XARC                                             Page 25
  1507. X CHANGES IN VERSION 4.1
  1508. X
  1509. XLempel-Zev coding has been improved somewhat by
  1510. Xperforming non-repeat compression on the data before
  1511. Xit is coded (as was already done with Huffman
  1512. Xsqueezing).  This has the two fold advantage of (a)
  1513. Xreducing to some extent the amount of data to be
  1514. Xencoded, and (b) increasing the time it takes for the
  1515. Xstring table to fill up.  Performance gains are small,
  1516. Xbut noticeable.
  1517. X
  1518. XThe primary changes are in internal organization.  ARC
  1519. Xis now much "cleaner" inside.  In addition to the
  1520. Xaesthetic benefits to the author, this should make
  1521. Xlife easier for the hackers out there.  There is also
  1522. Xa slight, but not noticeable, improvement in overall
  1523. Xspeed when doing an update.
  1524. X
  1525. X
  1526. X
  1527. XCHANGES IN VERSION 4.3
  1528. X
  1529. XVersion 4.3 adds the much-demanded feature of using
  1530. Xpathnames when adding files to an archive.
  1531. X
  1532. XVersion 4.3 is also using a slightly different
  1533. Xapproach when adding a file to an archive.  The end
  1534. Xresult is twofold:
  1535. X
  1536. X1) Slightly more disk space is required on the drive
  1537. X   containing the archive.  This should only be
  1538. X   noticeable to those creating very large archives on
  1539. X   a floppy based system.
  1540. X
  1541. X2) A 30% reduction in packing time has been achieved
  1542. X   in most cases.  This should be noticeable to
  1543. X   everyone.
  1544. X
  1545. XAs always, version 4.3 is still fully upwards
  1546. Xcompatible, and is backwards compatible as far as
  1547. Xversion 4.1.
  1548. X
  1549. X
  1550. X
  1551. X
  1552. X
  1553. X
  1554. X
  1555. X
  1556. X
  1557. X
  1558. X
  1559. X
  1560. X
  1561. XARC                                             Page 26
  1562. X CHANGES IN VERSION 4.4
  1563. X
  1564. XThe temporary file introduced in version 4.3
  1565. Xoccasionally caused problems for people who had not
  1566. Xadded a FILES= statement to their CONFIG.SYS file.
  1567. XThis has now been corrected.  Also, support of the
  1568. XARCTEMP environment string was added to allow placing
  1569. Xof the temporary file on a RAMdisk.
  1570. X
  1571. XA bug was reported in the Run command, which has been
  1572. Xfixed.  From the nature of the bug, and the extreme
  1573. Xtime required before the bug was reported, it is
  1574. Xdeduced that the Run command is probably the least
  1575. Xused feature of ARC.
  1576. X
  1577. XThe Update command was changed.  It is no longer a
  1578. Xstraight synonym for Add.  Instead, Update now only
  1579. Xadds a file if it is newer than the version already in
  1580. Xthe archive, as shown by the MS-DOS date/time stamp.
  1581. X
  1582. X
  1583. X
  1584. XCHANGES IN VERSION 4.5
  1585. X
  1586. XThe Convert command was not making use of RAMdisk
  1587. Xsupport.  Now it is.
  1588. X
  1589. XThe Freshen command was added.  Our first choice for a
  1590. Xname was Refresh, but we already had a Run command.
  1591. XAssuming that you have an archive which already
  1592. Xcontains everything you want in it (for software
  1593. Xdistribution, perhaps), then Freshen would be used to
  1594. Xupdate the archive.  It was pointed out to us that ARC
  1595. Xalready knows what is in the archive, so it should be
  1596. Xable to look on disk for newer versions.  Now it can.
  1597. X
  1598. XThe Suppress compression option was added by popular
  1599. Xdemand.  It allows files to be added quickly to an
  1600. Xarchive, since the files are not analyzed or
  1601. Xcompressed, but merely stored straight.  The intent is
  1602. Xto allow users to build an archive "in pieces", and
  1603. Xthen compress all of the entries at once with the
  1604. XConvert command.  The conversion is much faster if you
  1605. Xtake advantage of RAMdisk support.
  1606. X
  1607. XA minor bug was detected in our handling of date/time
  1608. Xstamps which occasionally resulted in stamping an
  1609. Xarchive with the wrong date and time.  This has been
  1610. Xcorrected.
  1611. X
  1612. X
  1613. X
  1614. X
  1615. X
  1616. XARC                                             Page 27
  1617. X CHANGES IN VERSION 5.0
  1618. X
  1619. XThe Move command used to delete the files as it went.
  1620. XIt now waits until it is finished updating the
  1621. Xarchive, and deletes them all at once.  (You *did* know
  1622. Xthat Move is just an Add where the file gets deleted,
  1623. Xdidn't you?)  This, along with the changes made in
  1624. Xversion 4.5, means that it is now much safer to
  1625. Xinterrupt ARC while it is working.
  1626. X
  1627. XThe Print command no longer prints the name of each
  1628. Xfile.  Instead, it prints a formfeed after each file.
  1629. X
  1630. XThe Run command now supports BASICA programs.  Also,
  1631. Xthe filename extension is no longer required on the
  1632. XRun command.
  1633. X
  1634. XThe Garble option was added.  It provides a convenient
  1635. Xmeans of low level data security for the casual user.
  1636. XUse it sparingly, if at all.
  1637. X
  1638. XARC no longer tests for the presence of $ARCTEMP.CRN
  1639. Xbefore creating a new one.  If you interrupt ARC a
  1640. Xlot, you'll find this much more convenient.  If you
  1641. Xhappen to have a file named $ARCTEMP.CRN which you
  1642. Xwant to keep, too bad.
  1643. X
  1644. XImproved error recovery was added when reading an
  1645. Xarchive.  ARC now has a good chance of recovering the
  1646. Xdata from a corrupted archive (the corrupted entry is
  1647. Xstill lost, of course).
  1648. X
  1649. XPath support has been added for all commands, though
  1650. Xit doesn't do anything on most of them.  For example,
  1651. Xthere isn't much we can do with a path in the List
  1652. Xcommand.  But many users will be glad to know that a
  1653. Xpath can be used when extracting a file, and specifies
  1654. Xwhere the file is to be placed.
  1655. X
  1656. XSupport for the TEMP environment string was added.  If
  1657. XARC doesn't find an environment string named ARCTEMP,
  1658. Xthen it looks for one named TEMP to use instead.
  1659. XSeveral packages already use the TEMP string for
  1660. Xexactly this purpose.  With any luck, maybe we can get
  1661. Xa standard going.
  1662. X
  1663. X
  1664. X
  1665. X
  1666. X
  1667. X
  1668. X
  1669. X
  1670. X
  1671. XARC                                             Page 28
  1672. X ARC is now using a different variation of Lempel-Zev
  1673. Xcoding, courtesy of Kent Williams, who found it on
  1674. XUSENET and adapted it to the IBM PC.  The new method
  1675. Xdiffers from the old in several respects.  The most
  1676. Xsignificant differences are:
  1677. X
  1678. X1) Where our previous implementation used a fixed code
  1679. X   size of twelve bits, the new one starts with a code
  1680. X   size of nine bits and increases it as it needs to.
  1681. X
  1682. X2) The earlier method tended to "choke" on large files
  1683. X   when its string table filled up.  The new method
  1684. X   has a rather ingenious scheme its authors call
  1685. X   "adaptive reset."  When it notices that its string
  1686. X   table has filled, and its compression ratio is
  1687. X   starting to suffer, it clears the table and starts
  1688. X   defining new strings.
  1689. X
  1690. XOur benchmarks show an improvement in compression on
  1691. Xthe order of 10% when crunching is used.
  1692. XAdditionally, ARC 5.0 is on the order of 23% faster at
  1693. Xadding a file when crunching is used, or 13% faster
  1694. Xwhen squeezing is used.  Extracting a file crunched
  1695. Xwith the new method is 27% faster than it is with the
  1696. Xold method.  Extraction of any other type of file
  1697. X(including those crunched with the older method) is no
  1698. Xfaster than before.  These figures are based on our
  1699. Xown benchmark tests; your results may vary.
  1700. X
  1701. XThe previous implementation of Lempel-Zev coding is no
  1702. Xlonger used to pack files.  The "V" (Verbose listing)
  1703. Xcommand distinguishes between the two by referring to
  1704. Xthe older method as "crunched" (with a lower-case
  1705. X"c"), and the newer method as "Crunched" (with a
  1706. Xcapital "C").
  1707. X
  1708. XARC 5.0 can still read archives created by earlier
  1709. Xversions of ARC, but once again it creates archives
  1710. Xwhich older versions cannot read.
  1711. X
  1712. X
  1713. X
  1714. XCHANGES IN VERSION 5.1
  1715. X
  1716. XRick Moore discovered that ARC was occasionally adding
  1717. Xan archive to itself.  This would only happen when the
  1718. Xarchive is in the same directory as the files being
  1719. Xadded, and its name comes last.  This bug has been
  1720. Xfixed, though it is still possible to fool ARC into
  1721. Xadding an archive to itself by getting tricky with
  1722. Xpath names.
  1723. X
  1724. X
  1725. X
  1726. XARC                                             Page 29
  1727. X Dana Montgomery found the upper limit on how many
  1728. Xfiles can be added to an archive.  There's always been
  1729. Xan upper limit, but it depends on memory, and used to
  1730. Xbe larger than anyone could possibly want (knock on
  1731. Xwood).  However, the added memory requirements in
  1732. Xversion 5.0 lowered this limit into the realm of
  1733. Xpossibility, somewhere around 300 files.  We change
  1734. Xsome things around, and effectively, there is no
  1735. Xlonger a limit on how many files you can add at once.
  1736. XARC will add the files in batches of as many as it can
  1737. Xhandle at one time.
  1738. X
  1739. XWe've also introduced a new packaging method for ARC
  1740. Xand its documentation, since we are in the unique
  1741. Xposition of being unable to use ARC for this purpose.
  1742. XWe've created a program called ARC51.COM which, when
  1743. Xexecuted, attempts to create the ARC program and
  1744. Xmanual.  You must be in the same directory as
  1745. XARC51.COM when you run it.
  1746. X
  1747. X
  1748. X
  1749. XCHANGES IN VERSION 5.2
  1750. X
  1751. XWe've made some changes to Lempel-Zev coding to
  1752. Xfurther improve its compression ability on "poor fit"
  1753. Xfiles (mainly .EXE and .COM files).  The result is
  1754. Xthat crunching now works better than squeezing on
  1755. Xalmost all files, and comes close on most of the rest
  1756. X(within 5%, by our benchmarks).  Accordingly, we have
  1757. Xdropped Huffman encoding in this version.  Our
  1758. Xbenchmarks show a speed improvement of around 14% when
  1759. Xadding a file to an archive.
  1760. X
  1761. XA low-level file copy routine was implemented to speed
  1762. Xup bulk data moves.  Deleting or adding a file to a
  1763. Xlarge existing archive is now much faster.
  1764. X
  1765. XThe Run command has been modified to allow passing
  1766. Xcommand line arguments to the program being run.
  1767. X
  1768. XThe temporary file introduced in version 4.3 has been
  1769. Xeliminated.  Crunched output generated in the analysis
  1770. Xphase is now placed directly in the output archive,
  1771. Xand is rewritten if crunching turns out not to be the
  1772. Xbest choice.  This can, in rare circumstances, cause
  1773. Xan archive to be slightly larger than it should be,
  1774. Xbut it also makes ARC considerably faster at adding
  1775. Xfiles to an archive.
  1776. X
  1777. X
  1778. X
  1779. X
  1780. X
  1781. XARC                                             Page 30
  1782. X   PROGRAM HISTORY AND CREDITS
  1783. X
  1784. X
  1785. X
  1786. XIn its short life thus far, ARC has astounded us with
  1787. Xits popularity.  We first wrote it in March of 1985
  1788. Xbecause we wanted an archive utility that used a
  1789. Xdistributive directory approach, since this has
  1790. Xcertain advantages over the then popular central
  1791. Xdirectory approach.  We added automatic squeezing in
  1792. Xversion 2 at the prompting of a friend.  In version
  1793. X2.1 we added the code to test for the best compression
  1794. Xmethod.  In less than a year we found that our humble
  1795. Xlittle program had spread across the country, and
  1796. Xseems to have become a new institution.
  1797. X
  1798. XWe are thankful for the support and appreciation we
  1799. Xhave received.  We hope that you find this program of
  1800. Xuse.
  1801. X
  1802. X
  1803. XIf we have achieved greatness, it is because we have
  1804. Xstood upon the shoulders of giants.  Nothing is
  1805. Xcreated as a thing unto itself, and ARC is no
  1806. Xexception.  Therefore, we would like to give credit to
  1807. Xthe following people, without whose efforts ARC could
  1808. Xnot exist:
  1809. X
  1810. X
  1811. XBrian W. Kernighan and P. J. Plauger, whose book
  1812. X"Software Tools" provided many of the ideas behind the
  1813. Xdistributive directory approach used by ARC.
  1814. X
  1815. XDick Greenlaw, who wrote the public domain SQ and USQ
  1816. Xprograms, in which the Huffman squeezing algorithm was
  1817. Xfirst developed.
  1818. X
  1819. XRobert J. Beilstein, who adapted SQ and USQ to
  1820. XComputer Innovations C86 (the language we use), thus
  1821. Xproviding us with important parts of our squeezing
  1822. Xlogic.
  1823. X
  1824. XKent Williams, who graciously allowed us to use his
  1825. XLZWCOM and LZWUNC programs as a basis for our Lempel-
  1826. XZev compression logic, and who continues to make
  1827. Xvaluable contributions.
  1828. X
  1829. XDavid Schwaderer, whose article in the April 1985
  1830. Xissue of PC Tech Journal provided us with the logic
  1831. Xfor calculating the CRC 16 bit polynomial.
  1832. X
  1833. X
  1834. X
  1835. X
  1836. XARC                                             Page 31
  1837. X Terry A. Welch, whose article "A Technique for High
  1838. XPerformance Data Compression", IEEE Computer Vol 17 No
  1839. X6 (June 1984) seems to have started all the research
  1840. Xon Lempel-Zev coding.
  1841. X
  1842. XSpencer W. Thomas, Jim McKie, Steve Davies, Ken
  1843. XTurkowski, James A.  Woods, and Joe Orost, who are the
  1844. Xauthors of the UNIX compress utility.
  1845. X
  1846. XAlex Jacobs, who in June of 1985 sent us the very
  1847. Xfirst shareware contribution we ever received.
  1848. X
  1849. X
  1850. XAnd many, many others whom we could not identify.
  1851. X
  1852. X
  1853. X
  1854. X
  1855. X
  1856. X
  1857. X
  1858. X
  1859. X
  1860. X
  1861. X
  1862. X
  1863. X
  1864. X
  1865. X
  1866. X
  1867. X
  1868. X
  1869. X
  1870. X
  1871. X
  1872. X
  1873. X
  1874. X
  1875. X
  1876. X
  1877. X
  1878. X
  1879. X
  1880. X
  1881. X
  1882. X
  1883. X
  1884. X
  1885. X
  1886. X
  1887. X
  1888. X
  1889. X
  1890. X
  1891. XARC                                             Page 32
  1892. X         BULLETIN BOARDS
  1893. X
  1894. X
  1895. X
  1896. XARC is distributed mainly through shareware channels.
  1897. XAmong other things, this means that ARC is available
  1898. Xfrom many bulletin board systems.  In fact, the system
  1899. Xoperators (sysops) of many bulletin boards have taken
  1900. Xto storing almost all of their downloadable files in
  1901. Xarchives to save themselves disk space and to save
  1902. Xtheir users time.
  1903. X
  1904. XThis also makes things more convenient for the
  1905. Xbulletin board users, since one archive may contain
  1906. Xseveral programs, any related data files, and the
  1907. Xdocumentation.  Many shareware authors have taken to
  1908. Xdistributing their software in archives to help ensure
  1909. Xthat the users receive everything.
  1910. X
  1911. XObviously, we can't do that with ARC.  As a result,
  1912. Xmany of our users have ARC, but don't have the manual.
  1913. XMost of our customer support calls come from people
  1914. Xwho have never seen the manual, and in many cases
  1915. Xdidn't even know that one exists!
  1916. X
  1917. XTo solve this problem we developed what is in essence
  1918. Xa self-unpacking archive.  We distribute this as
  1919. X"ARCxxx.COM", where "xxx" is the current version
  1920. Xnumber.  For example, ARC version 5.20 would be
  1921. Xdistributed as "ARC520.COM".  This program, when run,
  1922. Xunpacks itself into a copy of ARC plus its
  1923. Xdocumentation.
  1924. X
  1925. XNow that we've gone to all that work, we'd really
  1926. Xappreciate it if you would use this program when you
  1927. Xdistribute ARC.
  1928. X
  1929. X
  1930. X
  1931. X
  1932. X
  1933. X
  1934. X
  1935. X
  1936. X
  1937. X
  1938. X
  1939. X
  1940. X
  1941. X
  1942. X
  1943. X
  1944. X
  1945. X
  1946. XARC                                             Page 33
  1947. X          SITE LICENSES
  1948. X
  1949. X
  1950. X
  1951. XCorporate users may wish to obtain a site license for
  1952. Xthe use of ARC.  Please use the order form in this
  1953. Xmanual to order a site license.  Site licenses are
  1954. Xgranted as of when we receive your payment.  License
  1955. Xfees vary depending on the number of computers on
  1956. Xwhich ARC will be used, as follows:
  1957. X
  1958. X     1 to  9 machines  $35 each
  1959. X    10 to 24 machines  $25 each
  1960. X    25 to 49 machines  $20 each
  1961. X    50 to 99 machines  $15 each
  1962. X    over  99 machines  $1500 one time fee
  1963. X
  1964. X
  1965. X
  1966. XEnclosed is a site license agreement, which should be
  1967. Xsigned and sent with your payment when ordering a
  1968. Xcommercial site license.
  1969. X
  1970. X
  1971. XA commercial site license does not include additional
  1972. Xcopies of the ARC program disk and the ARC manual.
  1973. XInstead, you make your own copies of the disk and
  1974. Xmanual as you need them.  If you wish, you can order
  1975. Xadditional program disks and manuals from us.
  1976. X
  1977. XAdditional program disks cost $10 each.  Additional
  1978. Xmanuals cost $20 each.  If you wish, you can order
  1979. Xprogram sets for $40 each.  A "program set" is a
  1980. Xprogram disk and manual enclosed in a vinyl binder.
  1981. XThere is a $50 minimum on all orders.
  1982. X
  1983. X
  1984. X
  1985. X
  1986. X
  1987. X
  1988. X
  1989. X
  1990. X
  1991. X
  1992. X
  1993. X
  1994. X
  1995. X
  1996. X
  1997. X
  1998. X
  1999. X
  2000. X
  2001. XARC                                             Page 34
  2002. X              SITE LICENSE APPLICATION
  2003. X
  2004. X
  2005. X
  2006. XThe use of ARC in a commercial environment or government organization
  2007. Xis granted under the following terms:
  2008. X
  2009. X1.  Payment of the license fee must be made to System Enhancement
  2010. X    Associates, Inc.  The fee is based on the number of computers
  2011. X    which will be used to run ARC, as follows:
  2012. X
  2013. X          1 to  9 machines  $35 each
  2014. X         10 to 24 machines  $25 each
  2015. X         25 to 49 machines  $20 each
  2016. X         50 to 99 machines  $15 each
  2017. X         over  99 machines  $1500 one time fee
  2018. X
  2019. X2.  You may use ARC on the number of computers included in the license
  2020. X    fee.  If you have paid the fee for over 99 machines, then you may
  2021. X    use ARC on any number of computers within your organization.
  2022. X
  2023. X3.  You may make copies of the program and documentation, in their
  2024. X    original,  unmodified form,  without restriction.  You may
  2025. X    distribute these copies without restriction.
  2026. X
  2027. X4.  If these copies are distributed outside of your organization,  you
  2028. X    have no obligation to control the use of those copies which are
  2029. X    outside of your organization.
  2030. X
  2031. X5.  You may make copies of the program documentation, in both its
  2032. X    printed form and machine readable form, without restriction.
  2033. X
  2034. X6.  You may use all future versions of ARC under this license.
  2035. X
  2036. X7.  You may *not* modify the program or charge a fee for copying or
  2037. X    distributing the program or its documentation.
  2038. X
  2039. X8.  It is your responsibility to make the necessary copies and to
  2040. X    deliver them to the computers which they will be used on.  If you
  2041. X    wish, you can order additional ARC program disks and manuals.
  2042. X
  2043. X9.  We are not responsible for *anything* that may happen or not happen
  2044. X    if you use ARC.  You're on your own.
  2045. X
  2046. X
  2047. X    I agree to abide by the terms and conditions of this license.
  2048. X
  2049. X    _____________________________         __________________________
  2050. X    Signature                             Date
  2051. X
  2052. X    _____________________________
  2053. X    Name (please print or type)
  2054. X
  2055. X    _____________________________
  2056. X    Title
  2057. X
  2058. X    _____________________________
  2059. X    Company
  2060. X
  2061. X
  2062. X                    ORDER FORM
  2063. X
  2064. X
  2065. X
  2066. XCheck which items you wish to purchase:
  2067. X
  2068. X    [] Noncommercial license for the use of ARC.
  2069. X
  2070. X    [] Commercial license for the use of ARC on ___ computers (see
  2071. X       attached price schedule and terms).
  2072. X
  2073. X    [] Program disk and documentation (only on orders of $50 or more,
  2074. X       not counting maintenance contracts).
  2075. X
  2076. X    [] ____ additional program disks at $10 per disk.
  2077. X
  2078. X    [] ____ additional manuals at $20 per manual
  2079. X
  2080. X    [] ____ additional program sets (disk, manual, and binder) at $40
  2081. X       per program set.
  2082. X
  2083. X    [] One year maintenance agreement at $50 per year.
  2084. X
  2085. X    [] Payment of $_____ is enclosed (check or money order).
  2086. X
  2087. X    [] Please charge $_____ to my [] Visa or [] MasterCard:
  2088. X
  2089. X      Card number:  _______________________________
  2090. X
  2091. X      Expiration date:  ___________________________
  2092. X
  2093. X      Signature:  _________________________________
  2094. X
  2095. X    _______________________________________________
  2096. X    Name
  2097. X
  2098. X    _______________________________________________
  2099. X
  2100. X
  2101. X    _______________________________________________
  2102. X    Address
  2103. X
  2104. X    ______________________   ________  ____________
  2105. X    City                     State     Zip
  2106. X
  2107. X    _______/_______
  2108. X    FidoNet address
  2109. X
  2110. X
  2111. XSend this completed form to:
  2112. X
  2113. X                  System Enhancement Associates, Inc.
  2114. X                     21 New Street, Wayne NJ 07470
  2115. X
  2116. XFor program disk orders outside the U.S., please add an additional $5,
  2117. Xand enclose an international money order payable in U.S. currency.
  2118. X
  2119. XFor commercial site license orders, please enclose a signed copy of
  2120. Xthe site license agreement.
  2121. X
  2122. ________This_Is_The_END________
  2123. if test `wc -c < Arc521.doc` -ne    54144; then
  2124.     echo 'shar: Arc521.doc was damaged during transit (should have been    54144 bytes)'
  2125. fi
  2126. fi        ; : end of overwriting check
  2127. echo 'x - arc.1'
  2128. if test -f arc.1; then echo 'shar: not overwriting arc.1'; else
  2129. sed 's/^X//' << '________This_Is_The_END________' > arc.1
  2130. X.TH ARC 1L "12 Jun 1988" "Local" "LOCAL COMMANDS"
  2131. X.SH NAME
  2132. Xarc \- pc archive utility
  2133. X.SH SYNOPSIS
  2134. X.B arc
  2135. Xa|m|u|f|d|x|e|r|p|l|v|t|c [ biswnoq ] [ g\fIpassword\fR ]
  2136. X.I archive 
  2137. X[ \fIfilename\fR ...]
  2138. X.SH DESCRIPTION
  2139. X.I Arc
  2140. Xis a general archive and file compression utility, used to maintain
  2141. Xa compressed archive of files.
  2142. XAn
  2143. X.I archive
  2144. Xis a single file that combines many files, reducing storage space
  2145. Xand allowing multiple files to be handled as one.
  2146. X.I Arc
  2147. Xuses one of several compression methods for each file within the
  2148. X.IR archive ,
  2149. Xbased on whichever method yields the smallest result.
  2150. X.SH INSTRUCTIONS
  2151. XExecute
  2152. X.I arc
  2153. Xwith no arguments for fairly verbose, usable instructions.
  2154. X.SH COMMAND SWITCHES
  2155. X.TP 3
  2156. Xa
  2157. Xadd files to archive.  Copies the indicated files to the archive.
  2158. X.TP
  2159. Xm
  2160. Xmove files to archive.  Same as 'a' switch except
  2161. Xthat the files are deleted from the directory as
  2162. Xthey are moved to the archive.
  2163. X.TP
  2164. Xu
  2165. Xupdate files in archive.  This switch will replace archived
  2166. Xfiles when the named file is newer than the archived copy.
  2167. XNew files will be added automatically.
  2168. X.TP
  2169. Xf
  2170. Xfreshen files in archive.  Same as 'u' except that
  2171. Xnew files will not be added.
  2172. X.TP
  2173. Xd
  2174. Xdelete files in archive.  The named files are removed from the archive.
  2175. X.TP
  2176. Xx,e
  2177. Xextract files from archive.  The named files are extracted
  2178. Xfrom the archive and created in the current directory
  2179. Xin an uncompressed state.
  2180. X.TP
  2181. Xr
  2182. Xrun one file with arguments from archive.  Any
  2183. Xprogram may be executed directly from the archive.
  2184. XThe parameters given after the program name are passed to
  2185. Xthe program without modification.
  2186. X.TP
  2187. Xp
  2188. Xcopy files from archive to standard output.  Useful
  2189. Xwith I/O redirection. A form-feed is appended after each file,
  2190. Xto ease use with printers.
  2191. X.TP
  2192. Xl
  2193. Xlist files in archive.  Limited information listing
  2194. Xof files contained in an archive.  Displays the
  2195. Xfilename, original length, and date last modified.
  2196. XIf the 'n' option (see below) is used, only the
  2197. Xfilename is displayed.
  2198. X.TP
  2199. Xv
  2200. Xverbose listing of files in archive.  Complete
  2201. Xinformation listing of files contained in an archive.
  2202. XDisplays the filename, original length, storage method,
  2203. Xstorage factor (% savings), compressed size, date, time,
  2204. Xand CRC.
  2205. X.TP
  2206. Xt
  2207. Xtest archive integrity.  Computes CRC values for each member of
  2208. Xthe archive and compares against the previously saved value.
  2209. X.TP
  2210. Xc
  2211. Xconvert entry to new packing method.  Convert files
  2212. Xstored with older methods to newer methods that are
  2213. Xmore efficient. Also useful for files previously
  2214. Xarchived with the 's' option.
  2215. X.SH OPTIONS
  2216. X.TP 3
  2217. Xb
  2218. Xretain backup copy of archive.  Keep the original
  2219. Xarchive file and rename to .BAK.
  2220. XThis switch may be used with the
  2221. Xfollowing commands:  a, m, u, f, d, c.
  2222. X.TP
  2223. Xi
  2224. Xsuppress image mode.  This switch causes files to
  2225. Xbe treated as text files, and will translate their
  2226. Xend-of-line sequence. (Unix's '\\n' vs. '\\r\\n' used
  2227. Xon many other systems.)  The default is to perform
  2228. Xno translation when compressing or extracting files.
  2229. XThis option makes dealing with text files much nicer,
  2230. Xthough the 'tr' command can also be used. ('\\r' in
  2231. Xmakefiles and C source code is such a nuisance...)
  2232. X.TP
  2233. Xs
  2234. Xsuppress compression.  This forces new files to be
  2235. Xsaved using Method 2 (no compression).  This switch
  2236. Xmay be used with the following commands:  a, m, u, f, c.
  2237. X.TP
  2238. Xw
  2239. Xsuppress warning messages.  This switch will keep
  2240. Xwarning messages from being displayed which is the default.
  2241. XMost warnings concern the deletion or existence of
  2242. Xfiles with the same name.
  2243. X.TP
  2244. Xn
  2245. Xsuppress notes and comments.  This switch will keep
  2246. Xuseful notes from being displayed which is the default.
  2247. XMost notes indicate what stage of compression is
  2248. Xbeing run (analyze, compaction, storage).
  2249. X.TP
  2250. Xo
  2251. Xoverwrite existing files when extracting.  This switch
  2252. Xwill make existing files silently get overwritten, instead
  2253. Xof asking for confirmation, which is the default.
  2254. X.TP
  2255. Xq
  2256. Xforce Squash compression method.  This switch causes
  2257. Xthe Squash compression method to be used, instead of
  2258. XCrunch, which is the default.
  2259. X.TP
  2260. Xg
  2261. Xencrypt/decrypt archive entry.  This is used to encode
  2262. Xfiles so that others may not read them.  BE CAREFUL!
  2263. XThis must be the last parameter in the switches because
  2264. Xeverything following is part of the password.
  2265. X.SH PROGRAMMING NOTES
  2266. X.I Arc
  2267. XVersion 2 differs from version 1 in that archive entries
  2268. Xare automatically compressed when they are added to the archive,
  2269. Xmaking a separate compression step unecessary.  The nature of the
  2270. Xcompression is indicated by the header version number placed in
  2271. Xeach archive entry, as follows:
  2272. X.nf
  2273. X         1 = Old style, no compression
  2274. X         2 = New style, no compression
  2275. X         3 = Compression of repeated characters only
  2276. X         4 = Compression of repeated characters plus Huffman SQueezing
  2277. X         5 = Lempel-Zev packing of repeated strings (old style)
  2278. X         6 = Lempel-Zev packing of repeated strings (new style)
  2279. X         7 = Lempel-Zev Williams packing with improved hash function
  2280. X         8 = Dynamic Lempel-Zev packing with adaptive reset
  2281. X         9 = Squashing
  2282. X.fi
  2283. X
  2284. XType 5, Lempel-Zev packing, was added as of version 4.0
  2285. X
  2286. XType 6 is Lempel-Zev packing where runs of repeated characters
  2287. Xhave been collapsed, and was added as of version 4.1
  2288. X
  2289. XType 7 is a variation of Lempel-Zev using a different hash
  2290. Xfunction which yields speed improvements of 20-25%, and was
  2291. Xadded as of version 4.6
  2292. X
  2293. XType 8 is a different implementation of Lempel-Zev, using a
  2294. Xvariable code size and an adaptive block reset, and was added
  2295. Xas of version 5.0
  2296. X
  2297. XType 9 is another variation of Lempel-Zev, using a larger
  2298. Xhash table. This method was developed by Phil Katz, and is
  2299. Xnot supported by the "official" \fBARC\fP programs.
  2300. X
  2301. X.I Arc
  2302. Xwill look for environment variables named \fIARCTEMP\fP or
  2303. X\fITMPDIR\fP, which, if present, indicates the pathname
  2304. Xwhere temporary files should be created. This is typically
  2305. Xthe location of a RAMdisk on a microcomputer, "/tmp/" or
  2306. Xleft unset.
  2307. X
  2308. XSee the included documentation file for more details.
  2309. X.SH HISTORY
  2310. X\fIArc\fP has been in use in the CP/M and MSDOS world for many years.
  2311. XThom Henderson developed the original version, but it is important to note that
  2312. X\fIarc\fP is based on the file compression theories developed by Huffman, Welch,
  2313. XKnott, Knuth, and many other scientists. This implementation is based on
  2314. Xversion 5.21 of the MSDOS program.
  2315. X.SH BUGS
  2316. X\fIArc\fP behaves just like the PC version of the program; all functions
  2317. Xof the "usage" display are working.
  2318. XFull compatibility with PC ARC files is maintained, the price for which is
  2319. Xthat \fIarc\fP doesn't like long filenames, and can only archive files with
  2320. Xnames of up to 12 characters.
  2321. XIt will *sometimes* do The Right Thing with them, but I suggest
  2322. Xyou put long-winded filenames in a "shar" before
  2323. X.IR arc ing
  2324. Xthem.
  2325. X
  2326. XThere shouldn't be any problems, (hah!) but if you find any, please
  2327. Xsend them to me at:
  2328. X
  2329. X    hyc@umix.cc.umich.edu
  2330. X    {rutgers, uunet}!umix!hyc
  2331. X
  2332. X.SH AUTHORS
  2333. XOriginal MSDOS program by Thom Henderson
  2334. X.br
  2335. XCOPYRIGHT(C) 1985-87 by System Enhancement Associates; ALL RIGHTS RESERVED
  2336. X
  2337. XOriginal Lempel-Zev code derived from compress 4.0.
  2338. XModified to support Squashing by Dan Lanciani (ddl@harvard.edu)
  2339. XPorted from MSDOS by Howard Chu (umix!hyc),
  2340. Xwith help from John Gilmore (hoptoad!gnu), James Turner (daisy!turner)
  2341. Xand others.
  2342. ________This_Is_The_END________
  2343. if test `wc -c < arc.1` -ne     7232; then
  2344.     echo 'shar: arc.1 was damaged during transit (should have been     7232 bytes)'
  2345. fi
  2346. fi        ; : end of overwriting check
  2347. exit 0
  2348.  
  2349.  
  2350.